package utils

import org.apache.commons.pool2.impl.GenericObjectPoolConfig
import redis.clients.jedis.{Jedis, JedisPool}

object JedisPools {
  private val jedisPools: JedisPool = new JedisPool(new GenericObjectPoolConfig(),"192.168.232.15",6379,10000,null,9)

  def getJedis(): Jedis = jedisPools.getResource
}
